"""
@Author : 合肥一元数智教育科技有限公司
@Date :  2025/5/12 13:47
@Description : 

"""
from django.urls import path
from . import views

urlpatterns = [
    path('dept/list', views.dept_list, name='dept_list'),  # app08/dept/list   name  路由别名
    path('dept/add', views.dept_add, name='dept_add'),
    path('dept/edit/<int:id>', views.dept_edit, name='dept_edit'),
    path('dept/delete/<int:id>', views.dept_delete, name='dept_delete'),

    path('user/list', views.user_list, name='user_list'),
    path('user/add', views.user_add, name='user_add'),
    path('user/edit', views.user_edit, name='user_edit'),
    path('user/delete/<int:id>', views.user_delete, name='user_delete'),
    path('user/reset/<int:id>', views.user_pwd_reset, name='user_reset'),
    path('user/login', views.user_login, name='user_login'),
    path('user/logout', views.user_logout, name='user_logout'),
    path('user/personal/pwd', views.user_personal_pwd, name='user_personal_pwd'),

    path('emp/list', views.emp_list, name='emp_list'),
    path('emp/add', views.emp_add, name='emp_add'),
    path('emp/edit/<int:id>', views.emp_edit, name='emp_edit'),
    path('emp/delete/<int:id>', views.emp_delete, name='emp_delete'),

    path('permission', views.permission, name='permission_page'),
    path('echarts/page', views.echarts_list, name='echarts_page'),
    path('echarts/age/avg', views.echarts_emp_age_avg, name='echarts_avg'),
    path('echarts/pie', views.echarts_emp_pie, name='echarts_pie'),

    path('ajax/page', views.ajax_page, name='ajax_page'),
    path('ajax/username', views.ajax_username, name='ajax_username'),
]
